package com.wtwd.device.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wtwd.device.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * <p>
 * 每日步数
 * </p>
 *
 * @author zdl
 * @since 2021-08-31
 */
@ApiModel(value = "Step对象", description = "每日步数")
public class Step extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "设备ID")
    private Long deviceId;

    @ApiModelProperty(value = "总步数")
    private Integer totalSteps;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "时间 yyyy-MM-dd")
    private Date time;

    @ApiModelProperty(value = "运动总时间(s)")
    private Integer totalTime;

    @ApiModelProperty(value = "运动距离(m)")
    private Integer totalDistance;

    @ApiModelProperty(value = "消耗卡路里(kcal)")
    private Integer totalCalories;

    @ApiModelProperty(value = "每个时段步数详情", hidden = true)
    private String stepDetails;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Integer getTotalSteps() {
        return totalSteps;
    }

    public void setTotalSteps(Integer totalSteps) {
        this.totalSteps = totalSteps;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getTotalTime() {
        return totalTime;
    }

    public void setTotalTime(Integer totalTime) {
        this.totalTime = totalTime;
    }

    public Integer getTotalDistance() {
        return totalDistance;
    }

    public void setTotalDistance(Integer totalDistance) {
        this.totalDistance = totalDistance;
    }

    public Integer getTotalCalories() {
        return totalCalories;
    }

    public void setTotalCalories(Integer totalCalories) {
        this.totalCalories = totalCalories;
    }

    public String getStepDetails() {
        return stepDetails;
    }

    public void setStepDetails(String stepDetails) {
        this.stepDetails = stepDetails;
    }

    @Override
    public String toString() {
        return "Step{" +
                "id=" + id +
                ", deviceId=" + deviceId +
                ", totalSteps=" + totalSteps +
                ", time=" + time +
                ", totalTime=" + totalTime +
                ", totalDistance=" + totalDistance +
                ", totalCalories=" + totalCalories +
                ", stepDetails=" + stepDetails +
                "}";
    }
}
